import http from '@/utils/http'

//轮播图部分
export const getBannerApi = (params = {}) => {
  //默认为1 商品为2
  const { distributionSite = '1' } = params
  return http({
    url: '/home/banner',
    params: {
      distributionSite,
    },
  })
}
//新鲜好物部分
export const getNewApi = () => {
  return http({
    url: '/home/new',
  })
}

//人气推荐部分
export const getHotApi = () => {
  return http({
    url: '/home/hot',
  })
}

//产品列表部分
export const getProductApi = () => {
  return http({
    url: '/home/goods',
  })
}
